﻿using System;
using System.Collections.Generic;
using System.Text;

namespace csharpcore7_ch3Point
{
    public struct Point
    {
        int x, y;
        public Point(int x, int y)
        {
            this.x = x;
            this.y = y;
            
        }
    }
    public struct ErrStructPoint
    {
        //int x = 1;  //字段不能初始化
        //int y;
        //public Point() { }  //不能有无参数的构造器
        //public Point(int x) { this.x = x} //必须分配所有字段
    }
    class Chapt03_4Struct
    {
    }
}
